//package com.zjc.springboot.delayqueue.listener;
//
//import com.zjc.springboot.delayqueue.event.Msg;
//import com.zjc.springboot.delayqueue.event.MsgEvent;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.context.ApplicationListener;
//import org.springframework.stereotype.Component;
//
//@Component
//public class MsgEventLisenter implements ApplicationListener<MsgEvent> {
//
//    private static final Logger logger = LoggerFactory.getLogger(RedisExpiredListener.class);
//
//    @Override
//    public void onApplicationEvent(MsgEvent event) {
//
//        Msg msg = event.getMsg();
//
//        System.out.println(msg);
//
//    }
//}
